<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>查看成绩</title>
</head>
<body>
<%@include file="stuindex.jsp" %>
<div style="width: 70%;margin: 0 auto;">
<table class="table">
  <thead class="thead-light">
    <tr>
      <th scope="col">课程号</th>
      <th scope="col">课程名</th>
      <th scope="col">学分</th>
      <th scope="col">是否必修</th>
      <th scope="col">任课老师</th>
      <th scope="col">成绩</th>
    </tr>
  </thead>
  <tbody>
  <c:forEach var="g" items="${gList }">
    <tr>
      <td>${g.course.cno }</td>
      <td>${g.course.cname }</td>
      <td>${g.course.ccredit }</td>
      <td>
      <c:choose>
      <c:when test="${g.course.status==0 }">是</c:when>
      <c:otherwise>否</c:otherwise>
      </c:choose>
      </td>
      <td>${g.course.teacher.tname }</td>
      <td>${g.grade }</td>
    </tr>
    </c:forEach>
  </tbody>
</table>
</div>
</body>
</html>